<template>
<div style="text-align: center;">
    <div class="login_logo">
      <img src="https://yanxuan.nosdn.127.net/static-union/164793255107785e.png" alt="">
    </div>
    <van-button type="primary" @click="toLogin">去登录</van-button>
  </div>
</template>

<script lang="ts">
  import { defineComponent } from "vue"
  export default defineComponent({
    name:'ToLogin',
  })
</script>

<script lang="ts" setup>
import router from '@/router';
import { useRoute } from 'vue-router';
const route = useRoute()
//去登陆
function toLogin(){
  router.push({path: '/login',query:{path: route.path}})
}
</script>

<style scoped>
.login_logo {
  padding: 80px 0;
  box-sizing: border-box;
  text-align: center;
}

.login_logo img {
  width: 134px;
  height: 45px;
}
</style>